#
# Count the number of Java files
#
echo "Number of java files:"
find .. -name "*.java" | wc -l


#
# Count the number of interfaces
#
echo "Number of interfaces"
for file in `find .. -name "*.java" -print`
do
  grep Interface $file >/dev/null
  if [[ $? -eq 0 ]];
  then
    echo "Found an interface in $file"
  fi
done

#
# Count the number of lines of code we have written
#
echo "Total number of lines of code written in .java"
cat `find .. -name "*.java"` | wc -l
